#ifndef WEIBO_H
#define WEIBO_H

#include <iostream>
#include <python2.6/Python.h>
#include <iostream>
#include <string>
using namespace std;

#include "InfoContainer.h"
#include "WeiQueue.h"
#include "AirConditionTerminal_YL.h"

class CWeiBo
{
public:
    //得到一个微博实例
    static CWeiBo *GetWeiboInstance();

    bool Init();
    bool Run();
    void Cleanup();

    //发微博
    void PostStatus(char *);

    //获取最新@我的微博
    void GetMostRecentStatus(char *);

    void GetRecentStatus(char *);

private:
    CInfoContainer * InfoContainer;
    CWeiQueue * WeiQueue;
    PyObject* pModule;
    PyObject *pyDict;
    PyObject *pyWeiboClass;
    PyObject *pyInstance;
    static CWeiBo *WeiboInstance;

private:
    CWeiBo();
    ~CWeiBo();

};

#endif // WEIBO_H
